﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace GTA.BusinessEntity.Configuration
{
    [Serializable()]
    public class ListConfiguration : ISerializable
    {
        [XmlElement("ControlName")]
        public String ControlName;
        [XmlElement("Columns")]
        public List<ListColumn> Columns;

        #region ISerializable Members

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            throw new NotImplementedException();
        }

        #endregion

        [Serializable()]
        public class ListColumn : ISerializable
        {
            [XmlElement("Width")]
            public Int32 Width;
            [XmlElement("Index")]
            public Int32 Index;
            [XmlElement("DisplayIndex")]
            public Int32 DisplayIndex;
            [XmlElement("ImageIndex")]
            public Int32 ImageIndex;
            [XmlElement("Text")]
            public String Text;
            [XmlElement("TextAlign")]
            public Int32 TextAlign;

            #region ISerializable Members

            public void GetObjectData(SerializationInfo info, StreamingContext context)
            {
                throw new NotImplementedException();
            }

            #endregion
        }
    }
}
